import 'package:flutter_getx_project/generated/json/base/json_field.dart';
import 'package:flutter_getx_project/generated/json/version_entity.g.dart';

@JsonSerializable()
class VersionEntity {
  VersionEntity();

  factory VersionEntity.fromJson(Map<String, dynamic> json) =>
      $VersionEntityFromJson(json);

  Map<String, dynamic> toJson() => $VersionEntityToJson(this);

  int code = 0;
  String? message;
  VersionData? data;
}

@JsonSerializable()
class VersionData {
  VersionData();

  factory VersionData.fromJson(Map<String, dynamic> json) =>
      $VersionDataFromJson(json);

  Map<String, dynamic> toJson() => $VersionDataToJson(this);

  int version = 0;
  String? versionName;
  String? content;
  String? url;
  bool isForce = false;
}
